package com.shuoren.roomtemperaturecloud.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shuoren.roomtemperaturecloud.entity.PageDataInfo;
import com.shuoren.roomtemperaturecloud.repository.HistoryRepository;

/**
 * @Author: Yann
 * @Date: 2019/1/3 14:20
 */
@Service
public class HistoryService {
	
	@Autowired
	private HistoryRepository historyRepository;

	public PageDataInfo getListHistory(String d_id, long startTime,long endTime,int pageNo,int pageSize) {
		return historyRepository.getListHistory(d_id,startTime,endTime,pageNo,pageSize);
	}
}
